/**
 * Title: FastJsonUtil.java
 * Description:
 * author: kotomifi
 * date: Jul 13, 2014
 * ©2014 apping 社区
 */
package com.apping.demo.bbs.utils;

import java.util.List;

import com.alibaba.fastjson.JSON;

/**
 *
 */
public class FastJsonUtil {

	/**
	 * 完成对单个javabean 的解析
	 */
	public static <T> T getNews(String jsonStr, Class<T> cls) {
		T t = null;
		try {
			t = JSON.parseObject(jsonStr, cls);
		} catch(Exception e) {
			
		}
		return t;
	}
	
	public static <T> List<T> getNewsList() {
		List<T> t = null;
		return t;
	}
}
